#include<bits/stdc++.h>
using namespace std;
int n,s,f=0;
int a[20],a_[20];
void dfs(int x, int i,int c) {
	if(f||x>s)return;
	if(x==s){
		for( int ll = 0; ll < n; ++ ll) {
			cout << a_[ll] << " ";
		} 
		cout<<endl;
		dfs(0,0,c+1);
	} 
	if(c==3){f=1;return;}
 	if(i==n)return;
	if(a_[i]) {
		a_[i]=0;
		dfs(x+a[i],i+1,c);
		a_[i]=1;
	}
	dfs(x,i+1,c);
}
int main() {
	cin>>n;
	for(int i=0;i<n;++i) {
		cin>>a[i];
		s+=a[i];
		a_[i]=1;
	}
	s/=4;
	dfs(0,0,0);
	cout<<(f?"Yes\n":"No\n");
	return 0;
}

